package com.goldgov.materials.dao;

import java.util.List;
import com.goldgov.materials.service.Materials;
import com.goldgov.materials.service.MaterialsQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MaterialsDao{
	
	Materials getMaterialsID();
	
	void addMaterials(Materials obj);
	
	int deleteMaterials(@Param("ids") String[] ids);
	
	int updateMaterials(Materials obj);
	
	Materials getMaterials(String id);
	
	List<Materials> listMaterials(@Param("query") MaterialsQuery query);
	
}